package com.example.blog.service;

import com.example.blog.dto.ArticleDTO;
import com.example.blog.dto.CommentDTO;
import com.example.blog.pojo.PageBean;
import com.example.blog.pojo.User;
import com.github.pagehelper.Page;

public interface AdminService {

    PageBean<User> getUserList(Integer pageNum, Integer pageSize, Integer role);
    PageBean<ArticleDTO> getArticleList(Integer pageNum, Integer pageSize, Integer categoryId, Integer status);
    PageBean<CommentDTO> getCommentList(Integer pageNum, Integer pageSize,Integer articleid,Integer userid);
    boolean updateArticle(Integer id,String message,Integer status);

    boolean deleteComment(Integer id);
    boolean deleteUser(Integer userid);
    String getArticleContent(Integer id);

}
